clone

Returns a clone of this cashflow (containing copies of the data fields).

Since

MD2027


fun clone(toCurr: CurrencyType, toDate: Int? = null): ROICashFlowEntry

Returns a clone of this cashflow whilst also converting the currency and value(s) (all other fields are copied). Note: This currency conversion can either use the existing cash flow entry's dateInt (default) - i.e. include FX impact in IRR, or the optional toDate parameter when excluding FX impacts - i.e. constant currency / exclude FX impact in IRR.

Since

MD2027

Parameters

toCurr

The target currency to convert to

toDate

The date for this cash flow currency conversion. Default null to use the cash flow's own transactional dateInt.